<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>网页标题</title>
	</head>
	<body>
		
		<script>
			
			
			window.onload = function()
			{
				console.log("页面加载完成了")
				
				console.log(document.title)
				
				var i = 0;
				setInterval(function()
				{
					if(i==0)
					{
						document.title = "O(∩_∩)O哈哈~"
						i=1
					}
					else 
					{
						document.title = "O(∩_∩)O嘿嘿~"
						i=0
					}
				},1000)
			}
			
			
		</script>
	</body>
</html>